|
|
|
|
|
|
|
Figure 13.33
Specifying a projection with an UP vector. |
|
|
|
|
|
|
|
|
You can use the arrow keys to make the program display the steps in the projection from different angles. |
|
|
|
|
|
|
|
|
Using Subroutine m3Project |
|
|
|
|
|
|
|
|
Subroutine m3Project in module M3Ops.bas uses these steps to initialize a transformation matrix representing a projection. This routine takes as parameters the matrix to be initialized, a flag indicating whether this should be a perspective or parallel projection, the center of projection, the focus point, and the UP direction vector. |
|
|
|
|
|
|
|
|
Figure 13.34
Projecting an object with an UP vector. |
|
|
|
|
|